//
//  FCPEnums.swift
//  flutter_carplay
//
//  Created by Oğuzhan Atalay on 21.08.2021.
//

enum FCPConnectionTypes {
  static let didBecomeActive = "didBecomeActive"
  static let connected = "connected"
  static let background = "background"
  static let disconnected = "disconnected"
}

enum FCPChannelTypes {
    static let onCarplayConnectionChange = "onCarplayConnectionChange"
    static let setRootTemplate = "setRootTemplate"
    static let forceUpdateRootTemplate = "forceUpdateRootTemplate"
    static let updateListItem = "updateListItem"
    static let onListItemSelected = "onFCPListItemSelected"
    static let onListItemSelectedComplete = "onFCPListItemSelectedComplete"
    static let onAlertActionPressed = "onFCPAlertActionPressed"
    static let setAlert = "setAlert"
    static let onPresentStateChanged = "onPresentStateChanged"
    static let popTemplate = "popTemplate"
    static let pushTemplate = "pushTemplate"
    static let closePresent = "closePresent"
    static let onGridButtonPressed = "onGridButtonPressed"
    static let setActionSheet = "setActionSheet"
    static let onBarButtonPressed = "onBarButtonPressed"
    static let popToRootTemplate = "popToRootTemplate"
    //初始化CPNowPlayingTemplate
    static let initNowPlayingTemplate = "initNowPlayingTemplate"
    //打开CPNowPlayingTemplate
    static let openNowPlayingTemplate = "openNowPlayingTemplate"
    //FCPNowPlayingTemplate里的按键
    static let onNowPlayingBtnPressed = "onNowPlayingBtnPressed"
    //当前选择的tab
    static let tabBarTemplate = "tabBarTemplate"
    //更新当前listTemplate
    static let updateListTemplate = "updateListTemplate"
}

enum FCPAlertActionTypes {
  case ACTION_SHEET
  case ALERT
}

enum FCPListTemplateTypes {
  case PART_OF_GRID_TEMPLATE
  case DEFAULT
}

enum FCPNowPlayingButtonTypes{
    static let CPNowPlayingButton = "CPNowPlayingButton"
    static let CPNowPlayingImageButton = "CPNowPlayingImageButton"
    static let CPNowPlayingAddToLibraryButton = "CPNowPlayingAddToLibraryButton"
    static let CPNowPlayingMoreButton = "CPNowPlayingMoreButton"
    static let CPNowPlayingPlaybackRateButton = "CPNowPlayingPlaybackRateButton"
    static let CPNowPlayingRepeatButton = "CPNowPlayingRepeatButton"
    static let CPNowPlayingShuffleButton = "CPNowPlayingShuffleButton"
}

